import Vue from 'vue';
import Router from 'vue-router';
import selectCourse from '@modules/common/selectCourse.vue';
import teacherIndex from '@modules/teacher/index.vue';


import manageStudentOutline from '@modules/teacher/manageStudent/outline.vue';
import manageStudentTypeIn from '@modules/teacher/manageStudent/typeIn.vue';
import manageCourseDescription from '@modules/teacher/manageCourse/description.vue';
import manageCourseNotice from '@modules/teacher/manageCourse/notice.vue';
import manageCoursePlan from '@modules/teacher/manageCourse/plan.vue';
import manageCourseReference from '@modules/teacher/manageCourse/reference.vue';
import manageCourseEvaluation from '@modules/teacher/manageCourse/evaluation.vue';
import manageCourseResource from '@modules/teacher/manageCourse/resource.vue';
import homeworkPublishOutline from '@modules/teacher/homeworkPublish/outline.vue';
import homeworkPublishPublish from '@modules/teacher/homeworkPublish/publish.vue';
import homeworkReadOutline from '@modules/teacher/homeworkRead/outline.vue';
import homeworkReadStudentSelect from '@modules/teacher/homeworkRead/studentSelect.vue';
import manageScoreComposition from '@modules/teacher/manageScore/composition.vue';
import manageScoreOutline from '@modules/teacher/manageScore/outline.vue';



Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'selectCourse',
            component: selectCourse
        },
        {
            path: '/index',
            name: 'teacherIndex',
            component: teacherIndex,
            children: [
                {
                    path: '/manageStudentOutline',
                    name: 'manageStudentOutline',
                    component: manageStudentOutline
                },{
                    path: '/manageStudentTypeIn',
                    name: 'manageStudentTypeIn',
                    component: manageStudentTypeIn
                },{
                    path: '/manageCourseDescription',
                    name: 'manageCourseDescription',
                    component: manageCourseDescription
                },{
                    path: '/manageCourseNotice',
                    name: 'manageCourseNotice',
                    component: manageCourseNotice
                },{
                    path: '/manageCoursePlan',
                    name: 'manageCoursePlan',
                    component: manageCoursePlan
                },{
                    path: '/manageCourseReference',
                    name: 'manageCourseReference',
                    component: manageCourseReference
                },{
                    path: '/manageCourseEvaluation',
                    name: 'manageCourseEvaluation',
                    component: manageCourseEvaluation
                },{
                    path: '/manageCourseResource',
                    name: 'manageCourseResource',
                    component: manageCourseResource
                },{
                    path: '/homeworkPublishOutline',
                    name: 'homeworkPublishOutline',
                    component: homeworkPublishOutline
                },{
                    path: '/homeworkPublishPublish',
                    name: 'homeworkPublishPublish',
                    component: homeworkPublishPublish
                },{
                    path: '/homeworkReadOutline',
                    name: 'homeworkReadOutline',
                    component: homeworkReadOutline
                },{
                    path: '/homeworkReadStudentSelect/:task',
                    name: 'homeworkReadStudentSelect',
                    component: homeworkReadStudentSelect,
                    props: true
                },{
                    path: '/manageScoreComposition',
                    name: 'manageScoreComposition',
                    component: manageScoreComposition
                },{
                    path: '/manageScoreOutline',
                    name: 'manageScoreOutline',
                    component: manageScoreOutline
                }
            ]
        }
    ]
})
